package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IForget2
import fhp.hlhj.giantfold.javaBean.ChangePwdBean
import fhp.hlhj.giantfold.module.ChangePwdModule

/**
 * author: FHP
 * data: on 2018\1\12 0012 14:48
 * E-Mail: 103945089@qq.com
 */
class ChangePwdPresenter(val iForget2: IForget2) : ChangePwdModule.ChangePWDListener {
    private val changePwdModule=ChangePwdModule()

    fun changePwd(params: HttpParams){
        changePwdModule.changePwd(params,this)
    }
    override fun startChangeing() {
        iForget2.showLoading()
    }

    override fun changeOver(changePwdBean: ChangePwdBean) {
        iForget2.changePwd(changePwdBean)
    }
}